<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var rightword="123456"
			var inputword=prompt("请您输入密码")
			if(rightword==inputword){
				document.write("登陆成功")
			}else{
				document.write("您的密码错误")
			}
		</script>
	</body>
</html>
